home *** CD-ROM | disk | FTP | other *** search
- Path: newsstand.tc.umn.edu!ianhogg
- From: ianhogg@cs.umn.edu (Ian J Hogg)
- Newsgroups: comp.lang.c++
- Subject: Re: HP C++ Compiler Problem w/ templates
- Date: 16 Mar 1996 13:22:36 GMT
- Organization: University of Minnesota
- Message-ID: <4iefas$39i@epx.cis.umn.edu>
- References: <4i7i5n$fst@access4.digex.net>
- NNTP-Posting-Host: tera.cs.umn.edu
-
- In article <4i7i5n$fst@access4.digex.net>,
- Mr. Blue <car@access4.digex.net> wrote:
- >The HP compiler is generating a file in the ptrepository directory,
- >which fails to compile on the link step. It seems that this file is
- >missing a #include. If I add the #include manually and CC that file,
- >it will compile. If I go back up to the src directory and recompile,
- >the file gets regenerated in the ptrepository subdirectory and the
- >compile again fails on the link step.
- >
-
- HP recommends that you put the template class definition in a .h file. The
- definitions of the member functions should go in a .C (or .cc) file. The
- .h should include all headers needed to compile. It will also include the
- file containing the definition of the class(es) that you are instantiating the
- template on. This header file should also include the headers necessary to
- compile the class.
-
- --
- ===============================================================================
- Ian Hogg ianhogg@cs.umn.edu
- (612) 424-6332
-